package com.robot.base.utils

import android.Manifest
import android.annotation.SuppressLint
import android.content.pm.PackageManager
import androidx.core.app.ActivityCompat
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.DeviceUtils
import com.blankj.utilcode.util.LogUtils
import com.blankj.utilcode.util.PhoneUtils

object ApiUtils {
    const val CLIENT_BRAND = "Apple"
    const val CLIENT_OS_NAME = "Android"
    @SuppressLint("MissingPermission")
    fun getClient():Map<String, String>{
        return mapOf(
            "appVersion" to AppUtils.getAppVersionName(),
            "clientBrand" to CLIENT_BRAND,
            "clientId" to DeviceUtils.getUniqueDeviceId(),
            "clientModel" to DeviceUtils.getModel(),
            "clientOsName" to CLIENT_OS_NAME,
            "clientOsVersion" to DeviceUtils.getSDKVersionName()
        )
    }
}